package com.fary.boot.autoconfigure.security.servlet;

import com.fary.boot.autoconfigure.condition.ConditionalOnBean;
import com.fary.boot.autoconfigure.condition.ConditionalOnMissingBean;
import com.fary.boot.autoconfigure.condition.ConditionalOnWebApplication;
import com.fary.context.annotation.Configuration;
import com.fary.security.config.BeanIds;
import com.fary.security.config.annotation.web.configuration.EnableWebSecurity;
import com.fary.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

@Configuration(proxyBeanMethods = false)
@ConditionalOnBean(WebSecurityConfigurerAdapter.class)
@ConditionalOnMissingBean(name = BeanIds.SPRING_SECURITY_FILTER_CHAIN)
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)
@EnableWebSecurity
public class WebSecurityEnablerConfiguration {

}